package com.ids.service;

import java.util.Map;

import com.ids.bean.UserAttendanceData;
import com.ids.daoManager.AttendanceScreenDaoManager;

public class AttendanceScreenService {
	
		private static AttendanceScreenService instance = new AttendanceScreenService();

		public static AttendanceScreenService getInstance() {
			return instance;
		}

		public Map<Integer,String> getAttendanceType(String empCode) {
			Map<Integer,String> attendanceType = AttendanceScreenDaoManager.getInstance().getAttendanceType(empCode);
			return attendanceType;
		}
		public Map<Integer,String> getDependantAttendanceType(int attendanceTypeId, String empCode) {
			Map<Integer,String> attendanceType = AttendanceScreenDaoManager.getInstance().getDependantAttendanceType( attendanceTypeId ,  empCode);
			return attendanceType;
		}
		public UserAttendanceData getSelectedAttendance(String date,String empCode){
			UserAttendanceData userAttendance = AttendanceScreenDaoManager.getInstance().getSelectedAttendance( date, empCode);
			return userAttendance;
		}
		public float getPLCount(String empCode){
			return AttendanceScreenDaoManager.getInstance().getPLCount( empCode);
		}
}
